package com.sup.generator.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户管理表
 *
 * @author zh
 * @email 1721562234@qq.com
 * @date 2020-11-13 11:09:51
 */
@Data
@TableName("gr_user")
public class GrUserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户的id
	 */
	@TableId
	private Long uId;
	/**
	 * 用户编码
	 */
	private String uCode;
	/**
	 * 用户名称
	 */
	private String name;
	/**
	 * 登录密码
	 */
	private String password;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 用户电话
	 */
	private Long phone;
	/**
	 * 用户的状态 0 false 1 true
	 */
	private Long status;
	/**
	 * 删除的标识 0 false 1 true
	 */
	private Integer deleteFlag;
	/**
	 * 创建人
	 */
	private Long createBy;
	/**
	 * 创建的时间
	 */
	private Date createDate;
	/**
	 * 修改人
	 */
	private Long updateBy;
	/**
	 * 修改时间
	 */
	private Date updateDate;
	/**
	 * 最后修改人
	 */
	private Long lastUpdateBy;
	/**
	 * 用户公司
	 */
	private String company;

	@Override
	public String toString() {
		return "GrUserEntity{" +
				"uId=" + uId +
				", uCode='" + uCode + '\'' +
				", name='" + name + '\'' +
				", password='" + password + '\'' +
				", email='" + email + '\'' +
				", phone=" + phone +
				", status=" + status +
				", deleteFlag=" + deleteFlag +
				", createBy=" + createBy +
				", createDate=" + createDate +
				", updateBy=" + updateBy +
				", updateDate=" + updateDate +
				", lastUpdateBy=" + lastUpdateBy +
				", company='" + company + '\'' +
				'}';
	}

	/**
	 * 单例模式
	 */
	private static GrUserEntity grUserEntity;

	public static GrUserEntity getGrUserEntity() {
		if(grUserEntity == null){
			grUserEntity = new GrUserEntity();
		}
		return grUserEntity;
	}

}
